<?php
// +-------------------------------------------------------------------
// |
// +-------------------------------------------------------------------
// | Copyright (c) 2009-2016 All rights reserved.
// +-------------------------------------------------------------------
namespace Service\Api\V1;

class InforType
{
    public $login = true; //是否需要登录才能访问该接口
    public $title = "帖子类型列表ok";
    public $group = '帖子';
    public $desc = "";

    public $input = [
    ];

    public $output = [
        [
            'id' => 'label=id;',
            'name' => 'label=类型名称;',
        ]
    ];

    public function run($param, $uid)
    {

        $list = M('user_infor_type')
            ->order('sort desc')
            ->select();

        return $list;
    }
}
